package com.rybbaby.tss.front.tssPaymentHistory.entity;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @description 缴费表
 * 
 * @author 雷春琼
 * 
 * @createDate 2017-08-10 上午12:22:55
 */
@Entity
@Table(name = "tss_payment_history")
@DynamicUpdate(true)
@DynamicInsert(true)
public class TssPaymentHistory implements Serializable {
	
	private static final long serialVersionUID = 55122785240200L;
	
	/** 主键 **/
	private String id;
	/** 缴费ID **/
	private String paymentId;
	/** 会员Id **/
	private String stuId;
	/** 当前操作者Id **/
	private String adminUserId;
	/** 课时包Id **/
	private String packageId;
	/** 报名状态 **/
	private Integer applyStatus;
	/** 缴费金额 **/
	private Double amount;
	/** 缴费编码 **/
	private String paymentCode;
	/** 缴费类型 **/
	private Integer paymentType;
	/** 定金状态 **/
	private Integer depositStatus;
	/** 备注 **/
	private String remark;
	/** 顾问ID **/
	private String empAdminUserId;
	/** 创建时间 **/
	private java.sql.Timestamp createTime;
	/** 修改时间 **/
	private java.sql.Timestamp updateTime;
	/** 版本 **/
	private Integer version;

	/**
	 * 缴费状态
	 */
	/*private Integer paymemtStatus;*/
	
	/**
	 * 方法: 取得主键
	 *
	 * @return java.lang.String 主键
	 */
	@Id
	@GeneratedValue(generator = "tss_payment_historyIDGenerator" , strategy = GenerationType.AUTO)
	@GenericGenerator(name = "tss_payment_historyIDGenerator" , strategy = "uuid")
	@Column(name = "id", nullable= false, length = 32)
	public String getId() {
		return this.id;
	}
	
	/**
	 * 方法: 设置主键
	 *
	 * @param id 主键
	 */
	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "paymentId", nullable= false, length = 32)
	public String getPaymentId() {
		return paymentId;
	}

	public void setPaymentId(String paymentId) {
		this.paymentId = paymentId;
	}
	
	/**
	 * 方法: 取得会员Id
	 *
	 * @return java.lang.String 会员Id
	 */
	@Column(name = "stuId", nullable= true, length = 32)
	public String getStuId() {
		return this.stuId;
	}
	
	/**
	 * 方法: 设置会员Id
	 *
	 * @param stuId 会员Id
	 */
	public void setStuId(String stuId) {
		this.stuId = stuId;
	}
	
	/**
	 * 方法: 取得当前操作者Id
	 *
	 * @return java.lang.String 当前操作者Id
	 */
	@Column(name = "adminUserId", nullable= true, length = 32)
	public String getAdminUserId() {
		return this.adminUserId;
	}
	
	/**
	 * 方法: 设置当前操作者Id
	 *
	 * @param adminUserId 当前操作者Id
	 */
	public void setAdminUserId(String adminUserId) {
		this.adminUserId = adminUserId;
	}
	
	/**
	 * 方法: 取得课时包Id
	 *
	 * @return java.lang.Integer 课时包Id
	 */
	@Column(name = "packageId", nullable= true, length = 32)
	public String getPackageId() {
		return this.packageId;
	}
	
	/**
	 * 方法: 设置课时包Id
	 *
	 * @param packageId 课时包Id
	 */
	public void setPackageId(String packageId) {
		this.packageId = packageId;
	}
	
	/**
	 * 方法: 取得报名状态
	 *
	 * @return java.lang.Integer 报名状态
	 */
	@Column(name = "applyStatus", nullable= true, length = 11)
	public Integer getApplyStatus() {
		return this.applyStatus;
	}
	
	/**
	 * 方法: 设置报名状态
	 *
	 * @param applyStatus 报名状态
	 */
	public void setApplyStatus(Integer applyStatus) {
		this.applyStatus = applyStatus;
	}
	
	/**
	 * 方法: 取得缴费金额
	 *
	 * @return java.lang.Double 缴费金额
	 */
	@Column(name = "amount", nullable= true, length = 22)
	public Double getAmount() {
		return this.amount;
	}
	
	/**
	 * 方法: 设置缴费金额
	 *
	 * @param amount 缴费金额
	 */
	public void setAmount(Double amount) {
		this.amount = amount;
	}

	@Column(name = "paymentCode", nullable= true, length = 32)
	public String getPaymentCode() {
		return paymentCode;
	}

	public void setPaymentCode(String paymentCode) {
		this.paymentCode = paymentCode;
	}

	@Column(name = "paymentType", nullable= true, length = 11)
	public Integer getPaymentType() {
		return paymentType;
	}

	public void setPaymentType(Integer paymentType) {
		this.paymentType = paymentType;
	}

	@Column(name = "depositStatus", nullable= true, length = 11)
	public Integer getDepositStatus() {
		return depositStatus;
	}

	public void setDepositStatus(Integer depositStatus) {
		this.depositStatus = depositStatus;
	}

	@Column(name = "remark", nullable= true, length = 11)
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "empAdminUserId", nullable= true, length = 32)
	public String getEmpAdminUserId() {
		return empAdminUserId;
	}

	public void setEmpAdminUserId(String empAdminUserId) {
		this.empAdminUserId = empAdminUserId;
	}
	/**
	 * 方法: 取得创建时间
	 *
	 * @return java.sql.Timestamp 创建时间
	 */
	@Column(name = "createTime", nullable= true, length = 19)
	public java.sql.Timestamp getCreateTime() {
		return this.createTime;
	}
	
	/**
	 * 方法: 设置创建时间
	 *
	 * @param createTime 创建时间
	 */
	public void setCreateTime(java.sql.Timestamp createTime) {
		this.createTime = createTime;
	}
	
	/**
	 * 方法: 取得修改时间
	 *
	 * @return java.sql.Timestamp 修改时间
	 */
	@Column(name = "updateTime", nullable= true, length = 19)
	public java.sql.Timestamp getUpdateTime() {
		return this.updateTime;
	}
	
	/**
	 * 方法: 设置修改时间
	 *
	 * @param updateTime 修改时间
	 */
	public void setUpdateTime(java.sql.Timestamp updateTime) {
		this.updateTime = updateTime;
	}
	
	/**
	 * 方法: 取得版本
	 *
	 * @return java.lang.Integer 版本
	 */
    @Version
	@Column(name = "version", nullable= true, length = 11)
	public Integer getVersion() {
		return this.version;
	}
	
	/**
	 * 方法: 设置版本
	 *
	 * @param version 版本
	 */
	public void setVersion(Integer version) {
		this.version = version;
	}

	/*@Column(name = "paymemtStatus", nullable= true, length = 11)

	public Integer getPaymemtStatus() {
		return paymemtStatus;
	}

	public void setPaymemtStatus(Integer paymemtStatus) {
		this.paymemtStatus = paymemtStatus;
	}*/
}